# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py3-libvirt
_pkgname=libvirt-python
pkgver=6.6.0
pkgrel=0
pkgdesc="The libvirt virtualization API python binding"
url="http://libvirt.org"
arch="all"
license="LGPL-2.0-or-later"
makedepends="py3-setuptools python3-dev libvirt-dev"
source="https://libvirt.org/sources/python/$_pkgname-$pkgver.tar.gz
	musl-gnuc-prereq.patch
	"
builddir="$srcdir/$_pkgname-$pkgver"

replaces="py-libvirt" # Backwards compatibility
provides="py-libvirt=$pkgver" # Backwards compatibility

check() {
	python3 setup.py check
}

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="3524cd490cb43b19e0376f7e167c02f26b5eb96942df241cbe627d6437d9dacc0aa0225aae269cbab7d446294795881cbb207f5c26be02cd5b5d42911eda5819  libvirt-python-6.6.0.tar.gz
8aa1d814f8388ebff0736ee138c780323381cd4cf39b4a4faed2e2a1fe5911facc34505a85b0977d8b4240b8ce2f4a6d0414790693c4f45ff7d9592e9d6a3ff8  musl-gnuc-prereq.patch"
